#include "pre-fft.h"
#include <iostream>
#include <fstream>
#include <python2.6/Python.h>

using namespace std;

int main(int argc, char *argv[]) {
	unsigned long file_size = 0;
	char *file_name;

	// get file size
	if (argc<=1) cout<<"Usage: ./test_pre-fft [filename]"<<endl;
	if (argc>1) {
		file_name = argv[1];
		file_size = get_file_size(file_name);
		cout<<"file \""<<file_name<<"\" size is "<<file_size<<endl;
	}
	
	// truncate or add file size
	Py_Initialize();
	trunc_or_add(file_name);
	Py_Finalize();

	split_file("data_4000", "1800");
	return 0;
}
